package com.xhg.common;

import java.io.Serializable;
import java.util.Map;


public class PageNavation implements Serializable {
	
	private static final long serialVersionUID = -6074371198315626282L;
	
	private int startIndex;						// 开始查询位置
	private int pageNumber;						// 当前页数
	private int pageSize=Constants.PAGE_SIZE;	// 每页显示的数量
	private int totalPage;						// 总页数
	private int totalRow;						// 总记录数
	private Map<String,Object> paramMap;		//Map存储参数
	private String order;						//排序参数
	private String sort;						//排序方式
	private String search;						//搜索内容
	
	public PageNavation() {
		super();
	}
	public PageNavation(int startIndex,int pageNumber,int pageSize,int totalPage,
		int totalRow,Map<String,Object> paramMap,String order,String sort,String search) {
		super();
		this.startIndex = startIndex;
		this.pageNumber = pageNumber;
		this.pageSize = pageSize;
		this.totalPage = totalPage;
		this.totalRow = totalRow;
		this.paramMap = paramMap;
		this.order=order;
		this.sort=sort;
		this.search=search;
	}
	public int getStartIndex() {
		return startIndex;
	}
	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}
	public int getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getTotalRow() {
		return totalRow;
	}
	public void setTotalRow(int totalRow) {
		this.totalRow = totalRow;
	}
	public Map<String, Object> getParamMap() {
		return paramMap;
	}
	public void setParamMap(Map<String, Object> paramMap) {
		this.paramMap = paramMap;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getSearch() {
		return search;
	}
	public void setSearch(String search) {
		this.search = search;
	}
}
